package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BkFriendshipMapper;
import com.ruoyi.system.domain.BkFriendship;
import com.ruoyi.system.service.IBkFriendshipService;

/**
 * 友链信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class BkFriendshipServiceImpl implements IBkFriendshipService 
{
    @Autowired
    private BkFriendshipMapper bkFriendshipMapper;

    /**
     * 查询友链信息
     * 
     * @param friendshipId 友链信息主键
     * @return 友链信息
     */
    @Override
    public BkFriendship selectBkFriendshipByFriendshipId(Long friendshipId)
    {
        return bkFriendshipMapper.selectBkFriendshipByFriendshipId(friendshipId);
    }

    /**
     * 查询友链信息列表
     * 
     * @param bkFriendship 友链信息
     * @return 友链信息
     */
    @Override
    public List<BkFriendship> selectBkFriendshipList(BkFriendship bkFriendship)
    {
        return bkFriendshipMapper.selectBkFriendshipList(bkFriendship);
    }

    /**
     * 新增友链信息
     * 
     * @param bkFriendship 友链信息
     * @return 结果
     */
    @Override
    public int insertBkFriendship(BkFriendship bkFriendship)
    {
        return bkFriendshipMapper.insertBkFriendship(bkFriendship);
    }

    /**
     * 修改友链信息
     * 
     * @param bkFriendship 友链信息
     * @return 结果
     */
    @Override
    public int updateBkFriendship(BkFriendship bkFriendship)
    {
        return bkFriendshipMapper.updateBkFriendship(bkFriendship);
    }

    /**
     * 批量删除友链信息
     * 
     * @param friendshipIds 需要删除的友链信息主键
     * @return 结果
     */
    @Override
    public int deleteBkFriendshipByFriendshipIds(Long[] friendshipIds)
    {
        return bkFriendshipMapper.deleteBkFriendshipByFriendshipIds(friendshipIds);
    }

    /**
     * 删除友链信息信息
     * 
     * @param friendshipId 友链信息主键
     * @return 结果
     */
    @Override
    public int deleteBkFriendshipByFriendshipId(Long friendshipId)
    {
        return bkFriendshipMapper.deleteBkFriendshipByFriendshipId(friendshipId);
    }
}
